package org.atlantis.grosbeak.cable;

import java.io.IOException;
import java.io.Writer;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletResponse;

import org.atlantis.grosbeak.cable.meta.ResponseAware;

class DefaultResponseAware implements ResponseAware {

	private HttpServletResponse response;

	public DefaultResponseAware(HttpServletResponse response) {
		this.response = response;
	}

	public ServletOutputStream getOutputStream() {
		try {
			return response.getOutputStream();
		} catch (IOException e) {
		}
		return null;
	}

	public HttpServletResponse getSelf() {
		return response;
	}

	public Writer getWriter() {
		try {
			return response.getWriter();
		} catch (IOException e) {
		}
		return null;
	}
}
